﻿using Abp.Authorization.Users;
using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Core.WorkFlows.Process.Entities
{
    /// <summary>
    /// 操作日志
    /// </summary>
    public class WorkFlowLogs : AuditedEntity<long>
    {
        public const int MaxFromOperatorNameLength = 64;
        public const int MaxNextOperatorNameLength = 1500;
        public const int MaxMessageLength = 512;

        public Guid PaperId { get; set; }

        public Guid? ProcessId { get; set; }

        [StringLength(MaxFromOperatorNameLength)]
        public string FromOperator { get; set; }

        [StringLength(MaxNextOperatorNameLength)]
        public string NextOperator { get; set; }

        [StringLength(MaxMessageLength)]
        public string Message { get; set; }

        public bool Parallel { get; set; }
    }
}
